<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"movie0125.gitee.io","root":"/","scheme":"Mist","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="LFS学习笔记（七）继续上一章的步骤，安装基本的系统软件,需要进入 chroot 环境执行。本章的内容同样及其枯燥。">
<meta property="og:type" content="article">
<meta property="og:title" content="lfs-notebook-07">
<meta property="og:url" content="https://movie0125.gitee.io/2021/06/09/lfs-notebook-07/index.html">
<meta property="og:site_name" content="Movie Blog">
<meta property="og:description" content="LFS学习笔记（七）继续上一章的步骤，安装基本的系统软件,需要进入 chroot 环境执行。本章的内容同样及其枯燥。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-06-09T02:58:36.000Z">
<meta property="article:modified_time" content="2021-06-09T07:32:47.737Z">
<meta property="article:author" content="Movie">
<meta property="article:tag" content="LFS">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://movie0125.gitee.io/2021/06/09/lfs-notebook-07/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>lfs-notebook-07 | Movie Blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Movie Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">拥抱开源，快乐分享</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://movie0125.gitee.io/2021/06/09/lfs-notebook-07/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Movie">
      <meta itemprop="description" content="学习，记录，分享，收获">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Movie Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          lfs-notebook-07
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2021-06-09 10:58:36 / 修改时间：15:32:47" itemprop="dateCreated datePublished" datetime="2021-06-09T10:58:36+08:00">2021-06-09</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" itemprop="url" rel="index"><span itemprop="name">学习笔记</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="fa fa-comment-o"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/2021/06/09/lfs-notebook-07/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/2021/06/09/lfs-notebook-07/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="LFS学习笔记（七）"><a href="#LFS学习笔记（七）" class="headerlink" title="LFS学习笔记（七）"></a>LFS学习笔记（七）</h1><p>继续上一章的步骤，安装基本的系统软件,需要进入 <code>chroot</code> 环境执行。本章的内容同样及其枯燥。</p>
<a id="more"></a>

<h2 id="安装-GRUB-2-04"><a href="#安装-GRUB-2-04" class="headerlink" title="安装 GRUB-2.04"></a>安装 GRUB-2.04</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../grub-2.04.tar.xz</span><br><span class="line"><span class="built_in">cd</span> grub-2.04/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr          \</span><br><span class="line">            --sbindir=/sbin        \</span><br><span class="line">            --sysconfdir=/etc      \</span><br><span class="line">            --disable-efiemu       \</span><br><span class="line">            --disable-werror</span><br><span class="line">make</span><br><span class="line">make install</span><br><span class="line">mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Less-551"><a href="#安装-Less-551" class="headerlink" title="安装 Less-551"></a>安装 Less-551</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../less-551.tar.gz</span><br><span class="line"><span class="built_in">cd</span> less-551/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr --sysconfdir=/etc</span><br><span class="line">make </span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Gzip-1-10"><a href="#安装-Gzip-1-10" class="headerlink" title="安装 Gzip-1.10"></a>安装 Gzip-1.10</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../gzip-1.10.tar.xz</span><br><span class="line"><span class="built_in">cd</span> gzip-1.10/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line">mv -v /usr/bin/gzip /bin</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-IPRoute2-5-2-0"><a href="#安装-IPRoute2-5-2-0" class="headerlink" title="安装 IPRoute2-5.2.0"></a>安装 IPRoute2-5.2.0</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../iproute2-5.2.0.tar.xz</span><br><span class="line"><span class="built_in">cd</span> iproute2-5.2.0/</span><br><span class="line"></span><br><span class="line">sed -i /ARPD/d Makefile</span><br><span class="line">rm -fv man/man8/arpd.8</span><br><span class="line">sed -i <span class="string">&#x27;s/.m_ipt.o//&#x27;</span> tc/Makefile</span><br><span class="line">make</span><br><span class="line">make DOCDIR=/usr/share/doc/iproute2-5.2.0 install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Kbd-2-2-0"><a href="#安装-Kbd-2-2-0" class="headerlink" title="安装 Kbd-2.2.0"></a>安装 Kbd-2.2.0</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../kbd-2.2.0.tar.xz</span><br><span class="line"><span class="built_in">cd</span> kbd-2.2.0/</span><br><span class="line"></span><br><span class="line">patch -Np1 -i ../../kbd-2.2.0-backspace-1.patch</span><br><span class="line">sed -i <span class="string">&#x27;s/\(RESIZECONS_PROGS=\)yes/\1no/g&#x27;</span> configure</span><br><span class="line">sed -i <span class="string">&#x27;s/resizecons.8 //&#x27;</span> docs/man/man8/Makefile.in</span><br><span class="line">PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure --prefix=/usr --disable-vlock</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line"></span><br><span class="line">mkdir -v       /usr/share/doc/kbd-2.2.0</span><br><span class="line">cp -R -v docs/doc/* /usr/share/doc/kbd-2.2.0</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Libpipeline-1-5-1"><a href="#安装-Libpipeline-1-5-1" class="headerlink" title="安装 Libpipeline-1.5.1"></a>安装 Libpipeline-1.5.1</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../libpipeline-1.5.1.tar.gz</span><br><span class="line"><span class="built_in">cd</span> libpipeline-1.5.1/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Make-4-2-1"><a href="#安装-Make-4-2-1" class="headerlink" title="安装 Make-4.2.1"></a>安装 Make-4.2.1</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../make-4.2.1.tar.gz</span><br><span class="line"><span class="built_in">cd</span> make-4.2.1/</span><br><span class="line"></span><br><span class="line">sed -i <span class="string">&#x27;211,217 d; 219,229 d; 232 d&#x27;</span> glob/glob.c</span><br><span class="line">./configure --prefix=/usr</span><br><span class="line">make</span><br><span class="line">make PERL5LIB=<span class="variable">$PWD</span>/tests/ check</span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Patch-2-7-6"><a href="#安装-Patch-2-7-6" class="headerlink" title="安装 Patch-2.7.6"></a>安装 Patch-2.7.6</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../patch-2.7.6.tar.xz</span><br><span class="line"><span class="built_in">cd</span> patch-2.7.6/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Man-DB-2-8-6-1"><a href="#安装-Man-DB-2-8-6-1" class="headerlink" title="安装 Man-DB-2.8.6.1"></a>安装 Man-DB-2.8.6.1</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../man-db-2.8.6.1.tar.xz</span><br><span class="line"><span class="built_in">cd</span> man-db-2.8.6.1/</span><br><span class="line"></span><br><span class="line">sed -i <span class="string">&#x27;/find/s@/usr@@&#x27;</span> init/systemd/man-db.service.in</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr                        \</span><br><span class="line">            --docdir=/usr/share/doc/man-db-2.8.6.1 \</span><br><span class="line">            --sysconfdir=/etc                    \</span><br><span class="line">            --disable-setuid                     \</span><br><span class="line">            --enable-cache-owner=bin             \</span><br><span class="line">            --with-browser=/usr/bin/lynx         \</span><br><span class="line">            --with-vgrind=/usr/bin/vgrind        \</span><br><span class="line">            --with-grap=/usr/bin/grap</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Tar-1-32"><a href="#安装-Tar-1-32" class="headerlink" title="安装 Tar-1.32"></a>安装 Tar-1.32</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../tar-1.32.tar.xz</span><br><span class="line"><span class="built_in">cd</span> tar-1.32/</span><br><span class="line"></span><br><span class="line">FORCE_UNSAFE_CONFIGURE=1  \</span><br><span class="line">./configure --prefix=/usr \</span><br><span class="line">            --bindir=/bin</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line">make -C doc install-html docdir=/usr/share/doc/tar-1.32</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Texinfo-6-6"><a href="#安装-Texinfo-6-6" class="headerlink" title="安装 Texinfo-6.6"></a>安装 Texinfo-6.6</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../texinfo-6.6.tar.xz</span><br><span class="line"><span class="built_in">cd</span> texinfo-6.6/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr --disable-static</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line">make TEXMF=/usr/share/texmf install-tex</span><br><span class="line"><span class="built_in">pushd</span> /usr/share/info</span><br><span class="line">rm -v dir</span><br><span class="line"><span class="keyword">for</span> f <span class="keyword">in</span> *</span><br><span class="line">  <span class="keyword">do</span> install-info <span class="variable">$f</span> dir 2&gt;/dev/null</span><br><span class="line"><span class="keyword">done</span></span><br><span class="line"><span class="built_in">popd</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Vim-8-1-1846"><a href="#安装-Vim-8-1-1846" class="headerlink" title="安装 Vim-8.1.1846"></a>安装 Vim-8.1.1846</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../vim-8.1.1846.tar.gz</span><br><span class="line"><span class="built_in">cd</span> vim-8.1.1846/</span><br><span class="line"></span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;#define SYS_VIMRC_FILE &quot;/etc/vimrc&quot;&#x27;</span> &gt;&gt; src/feature.h</span><br><span class="line">./configure --prefix=/usr</span><br><span class="line">make</span><br><span class="line">chown -Rv nobody .</span><br><span class="line">su nobody -s /bin/bash -c <span class="string">&quot;LANG=en_US.UTF-8 make -j1 test&quot;</span> &amp;&gt; vim-test.log</span><br><span class="line">make install</span><br><span class="line">ln -sv vim /usr/bin/vi</span><br><span class="line"><span class="keyword">for</span> L <span class="keyword">in</span>  /usr/share/man/&#123;,*/&#125;man1/vim.1; <span class="keyword">do</span></span><br><span class="line">    ln -sv vim.1 $(dirname <span class="variable">$L</span>)/vi.1</span><br><span class="line"><span class="keyword">done</span></span><br><span class="line">ln -sv ../vim/vim81/doc /usr/share/doc/vim-8.1.1846</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h3 id="设置Vim"><a href="#设置Vim" class="headerlink" title="设置Vim"></a>设置Vim</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">cat &gt; /etc/vimrc &lt;&lt; <span class="string">&quot;EOF&quot;</span></span><br><span class="line"><span class="string">&quot; Begin /etc/vimrc</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">&quot;</span> Ensure defaults are <span class="built_in">set</span> before customizing settings, not after</span><br><span class="line"><span class="built_in">source</span> <span class="variable">$VIMRUNTIME</span>/defaults.vim</span><br><span class="line"><span class="built_in">let</span> skip_defaults_vim=1 </span><br><span class="line"></span><br><span class="line"><span class="built_in">set</span> nocompatible</span><br><span class="line"><span class="built_in">set</span> backspace=2</span><br><span class="line"><span class="built_in">set</span> mouse=</span><br><span class="line">syntax on</span><br><span class="line"><span class="keyword">if</span> (&amp;term == <span class="string">&quot;xterm&quot;</span>) || (&amp;term == <span class="string">&quot;putty&quot;</span>)</span><br><span class="line">  <span class="built_in">set</span> background=dark</span><br><span class="line">endif</span><br><span class="line"></span><br><span class="line"><span class="string">&quot; End /etc/vimrc</span></span><br><span class="line"><span class="string">EOF</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string">vim -c &#x27;:options&#x27;</span></span><br><span class="line"><span class="string"></span></span><br></pre></td></tr></table></figure>
<h2 id="安装-systemd-241"><a href="#安装-systemd-241" class="headerlink" title="安装 systemd-241"></a>安装 systemd-241</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../systemd-241.tar.gz</span><br><span class="line"><span class="built_in">cd</span> systemd-241/</span><br><span class="line"></span><br><span class="line">patch -Np1 -i ../../systemd-241-networkd_and_rdrand_fixes-1.patch</span><br><span class="line">ln -sf /tools/bin/<span class="literal">true</span> /usr/bin/xsltproc</span><br><span class="line"><span class="keyword">for</span> file <span class="keyword">in</span> /tools/lib/lib&#123;blkid,mount,uuid&#125;.so*; <span class="keyword">do</span></span><br><span class="line">    ln -sf <span class="variable">$file</span> /usr/lib/</span><br><span class="line"><span class="keyword">done</span></span><br><span class="line"></span><br><span class="line">tar -xf ../../systemd-man-pages-241.tar.xz</span><br><span class="line">sed <span class="string">&#x27;177,$ d&#x27;</span> -i src/resolve/meson.build</span><br><span class="line">sed -i <span class="string">&#x27;s/GROUP=&quot;render&quot;, //&#x27;</span> rules/50-udev-default.rules.in</span><br><span class="line"></span><br><span class="line">mkdir -p build</span><br><span class="line"><span class="built_in">cd</span>       build</span><br><span class="line"></span><br><span class="line">PKG_CONFIG_PATH=<span class="string">&quot;/usr/lib/pkgconfig:/tools/lib/pkgconfig&quot;</span> \</span><br><span class="line">LANG=en_US.UTF-8                   \</span><br><span class="line">CFLAGS+=<span class="string">&quot;-Wno-format-overflow&quot;</span>     \</span><br><span class="line">meson --prefix=/usr                \</span><br><span class="line">      --sysconfdir=/etc            \</span><br><span class="line">      --localstatedir=/var         \</span><br><span class="line">      -Dblkid=<span class="literal">true</span>                 \</span><br><span class="line">      -Dbuildtype=release          \</span><br><span class="line">      -Ddefault-dnssec=no          \</span><br><span class="line">      -Dfirstboot=<span class="literal">false</span>            \</span><br><span class="line">      -Dinstall-tests=<span class="literal">false</span>        \</span><br><span class="line">      -Dkmod-path=/bin/kmod        \</span><br><span class="line">      -Dldconfig=<span class="literal">false</span>             \</span><br><span class="line">      -Dmount-path=/bin/mount      \</span><br><span class="line">      -Drootprefix=                \</span><br><span class="line">      -Drootlibdir=/lib            \</span><br><span class="line">      -Dsplit-usr=<span class="literal">true</span>             \</span><br><span class="line">      -Dsulogin-path=/sbin/sulogin \</span><br><span class="line">      -Dsysusers=<span class="literal">false</span>             \</span><br><span class="line">      -Dumount-path=/bin/umount    \</span><br><span class="line">      -Db_lto=<span class="literal">false</span>                \</span><br><span class="line">      -Drpmmacrosdir=no            \</span><br><span class="line">      ..</span><br><span class="line">LANG=en_US.UTF-8 ninja</span><br><span class="line">LANG=en_US.UTF-8 ninja install</span><br><span class="line">rm -f /usr/bin/xsltproc</span><br><span class="line">systemd-machine-id-setup</span><br><span class="line">rm -fv /usr/lib/lib&#123;blkid,uuid,mount&#125;.so*</span><br><span class="line">rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-D-Bus-1-12-16"><a href="#安装-D-Bus-1-12-16" class="headerlink" title="安装 D-Bus-1.12.16"></a>安装 D-Bus-1.12.16</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../dbus-1.12.16.tar.gz</span><br><span class="line"><span class="built_in">cd</span> dbus-1.12.16/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr                       \</span><br><span class="line">            --sysconfdir=/etc                   \</span><br><span class="line">            --localstatedir=/var                \</span><br><span class="line">            --disable-static                    \</span><br><span class="line">            --disable-doxygen-docs              \</span><br><span class="line">            --disable-xml-docs                  \</span><br><span class="line">            --docdir=/usr/share/doc/dbus-1.12.16 \</span><br><span class="line">            --with-console-auth-dir=/run/console</span><br><span class="line"></span><br><span class="line">make</span><br><span class="line">make install</span><br><span class="line">mv -v /usr/lib/libdbus-1.so.* /lib</span><br><span class="line">ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</span><br><span class="line">ln -sfv /etc/machine-id /var/lib/dbus</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Procps-ng-3-3-15"><a href="#安装-Procps-ng-3-3-15" class="headerlink" title="安装 Procps-ng-3.3.15"></a>安装 Procps-ng-3.3.15</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../procps-ng-3.3.15.tar.xz</span><br><span class="line"><span class="built_in">cd</span> procps-ng-3.3.15/</span><br><span class="line"></span><br><span class="line">./configure --prefix=/usr                            \</span><br><span class="line">            --exec-prefix=                           \</span><br><span class="line">            --libdir=/usr/lib                        \</span><br><span class="line">            --docdir=/usr/share/doc/procps-ng-3.3.15 \</span><br><span class="line">            --disable-static                         \</span><br><span class="line">            --disable-kill                           \</span><br><span class="line">            --with-systemd</span><br><span class="line">make</span><br><span class="line"></span><br><span class="line">sed -i -r <span class="string">&#x27;s|(pmap_initname)\\\$|\1|&#x27;</span> testsuite/pmap.test/pmap.exp</span><br><span class="line">sed -i <span class="string">&#x27;/set tty/d&#x27;</span> testsuite/pkill.test/pkill.exp</span><br><span class="line">rm testsuite/pgrep.test/pgrep.exp</span><br><span class="line">make check</span><br><span class="line"></span><br><span class="line">make install </span><br><span class="line"></span><br><span class="line">mv -v /usr/lib/libprocps.so.* /lib</span><br><span class="line">ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-Util-linux-2-34"><a href="#安装-Util-linux-2-34" class="headerlink" title="安装 Util-linux-2.34"></a>安装 Util-linux-2.34</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../util-linux-2.34.tar.xz</span><br><span class="line"><span class="built_in">cd</span> util-linux-2.34/</span><br><span class="line"></span><br><span class="line">mkdir -pv /var/lib/hwclock</span><br><span class="line">rm -vf /usr/include/&#123;blkid,libmount,uuid&#125;</span><br><span class="line"></span><br><span class="line">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime   \</span><br><span class="line">            --docdir=/usr/share/doc/util-linux-2.34 \</span><br><span class="line">            --disable-chfn-chsh  \</span><br><span class="line">            --disable-login      \</span><br><span class="line">            --disable-nologin    \</span><br><span class="line">            --disable-su         \</span><br><span class="line">            --disable-setpriv    \</span><br><span class="line">            --disable-runuser    \</span><br><span class="line">            --disable-pylibmount \</span><br><span class="line">            --disable-static     \</span><br><span class="line">            --without-python</span><br><span class="line"></span><br><span class="line">make</span><br><span class="line">chown -Rv nobody .</span><br><span class="line">su nobody -s /bin/bash -c <span class="string">&quot;PATH=<span class="variable">$PATH</span>:/tools/bin make -k check&quot;</span></span><br><span class="line">make install</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="安装-E2fsprogs-1-45-3"><a href="#安装-E2fsprogs-1-45-3" class="headerlink" title="安装 E2fsprogs-1.45.3"></a>安装 E2fsprogs-1.45.3</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> /sources/build</span><br><span class="line">tar xf ../e2fsprogs-1.45.3.tar.gz</span><br><span class="line"><span class="built_in">cd</span> e2fsprogs-1.45.3/</span><br><span class="line"></span><br><span class="line">mkdir -v build</span><br><span class="line"><span class="built_in">cd</span>       build</span><br><span class="line"></span><br><span class="line">../configure --prefix=/usr           \</span><br><span class="line">             --bindir=/bin           \</span><br><span class="line">             --with-root-prefix=<span class="string">&quot;&quot;</span>   \</span><br><span class="line">             --enable-elf-shlibs     \</span><br><span class="line">             --disable-libblkid      \</span><br><span class="line">             --disable-libuuid       \</span><br><span class="line">             --disable-uuidd         \</span><br><span class="line">             --disable-fsck</span><br><span class="line">make</span><br><span class="line">make check</span><br><span class="line">make install</span><br><span class="line"></span><br><span class="line">make install-libs</span><br><span class="line">chmod -v u+w /usr/lib/&#123;libcom_err,libe2p,libext2fs,libss&#125;.a</span><br><span class="line">gunzip -v /usr/share/info/libext2fs.info.gz</span><br><span class="line">install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info</span><br><span class="line"></span><br><span class="line">makeinfo -o      doc/com_err.info ../lib/et/com_err.texinfo</span><br><span class="line">install -v -m644 doc/com_err.info /usr/share/info</span><br><span class="line">install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<h2 id="清理"><a href="#清理" class="headerlink" title="清理"></a>清理</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">rm -rf /tmp/*</span><br><span class="line"></span><br><span class="line"><span class="comment"># 重新进入 chroot 环境</span></span><br><span class="line"><span class="comment"># 这样做的原因是不再需要 /tools 中的程序。因此你可以删除 /tools 目录。</span></span><br><span class="line">chroot <span class="string">&quot;<span class="variable">$LFS</span>&quot;</span> /usr/bin/env -i          \</span><br><span class="line">    HOME=/root TERM=<span class="string">&quot;<span class="variable">$TERM</span>&quot;</span>            \</span><br><span class="line">    PS1=<span class="string">&#x27;(lfs chroot) \u:\w\$ &#x27;</span>        \</span><br><span class="line">    PATH=/bin:/usr/bin:/sbin:/usr/sbin \</span><br><span class="line">    /bin/bash --login</span><br><span class="line"></span><br><span class="line">rm -f /usr/lib/lib&#123;bfd,opcodes&#125;.a</span><br><span class="line">rm -f /usr/lib/libbz2.a</span><br><span class="line">rm -f /usr/lib/lib&#123;com_err,e2p,ext2fs,ss&#125;.a</span><br><span class="line">rm -f /usr/lib/libltdl.a</span><br><span class="line">rm -f /usr/lib/libfl.a</span><br><span class="line">rm -f /usr/lib/libz.a</span><br><span class="line"></span><br><span class="line">find /usr/lib /usr/libexec -name \*.la -delete</span><br><span class="line"></span><br></pre></td></tr></table></figure>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/LFS/" rel="tag"># LFS</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/05/20/lfs-notebook-06/" rel="prev" title="lfs-notebook-06">
      <i class="fa fa-chevron-left"></i> lfs-notebook-06
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/06/09/lfs-notebook-08/" rel="next" title="lfs-notebook-08">
      lfs-notebook-08 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#LFS%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%83%EF%BC%89"><span class="nav-number">1.</span> <span class="nav-text">LFS学习笔记（七）</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-GRUB-2-04"><span class="nav-number">1.1.</span> <span class="nav-text">安装 GRUB-2.04</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Less-551"><span class="nav-number">1.2.</span> <span class="nav-text">安装 Less-551</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Gzip-1-10"><span class="nav-number">1.3.</span> <span class="nav-text">安装 Gzip-1.10</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-IPRoute2-5-2-0"><span class="nav-number">1.4.</span> <span class="nav-text">安装 IPRoute2-5.2.0</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Kbd-2-2-0"><span class="nav-number">1.5.</span> <span class="nav-text">安装 Kbd-2.2.0</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Libpipeline-1-5-1"><span class="nav-number">1.6.</span> <span class="nav-text">安装 Libpipeline-1.5.1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Make-4-2-1"><span class="nav-number">1.7.</span> <span class="nav-text">安装 Make-4.2.1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Patch-2-7-6"><span class="nav-number">1.8.</span> <span class="nav-text">安装 Patch-2.7.6</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Man-DB-2-8-6-1"><span class="nav-number">1.9.</span> <span class="nav-text">安装 Man-DB-2.8.6.1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Tar-1-32"><span class="nav-number">1.10.</span> <span class="nav-text">安装 Tar-1.32</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Texinfo-6-6"><span class="nav-number">1.11.</span> <span class="nav-text">安装 Texinfo-6.6</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Vim-8-1-1846"><span class="nav-number">1.12.</span> <span class="nav-text">安装 Vim-8.1.1846</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AE%BE%E7%BD%AEVim"><span class="nav-number">1.12.1.</span> <span class="nav-text">设置Vim</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-systemd-241"><span class="nav-number">1.13.</span> <span class="nav-text">安装 systemd-241</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-D-Bus-1-12-16"><span class="nav-number">1.14.</span> <span class="nav-text">安装 D-Bus-1.12.16</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Procps-ng-3-3-15"><span class="nav-number">1.15.</span> <span class="nav-text">安装 Procps-ng-3.3.15</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-Util-linux-2-34"><span class="nav-number">1.16.</span> <span class="nav-text">安装 Util-linux-2.34</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85-E2fsprogs-1-45-3"><span class="nav-number">1.17.</span> <span class="nav-text">安装 E2fsprogs-1.45.3</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%B8%85%E7%90%86"><span class="nav-number">1.18.</span> <span class="nav-text">清理</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Movie</p>
  <div class="site-description" itemprop="description">学习，记录，分享，收获</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">14</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Movie</span>
</div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>











<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'forest',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'bx3R5BB7VYCe0Yu5f4PF2Ako-gzGzoHsz',
      appKey     : '24eOkgM1v8hYTlnAO3C2eG3n',
      placeholder: "欢迎留言评论",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : 'zh-cn' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
